﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Citi.RoutineBase;

namespace Citi.RoutineTest
{
    public class Class2 : IExecutableRoutine
    {
        public void Start(DateTime date, ref ICurrentAction currentAction)
        {
            try
            {
                File.Create(@"c:\tempoooo\asdas.txt");
            }
            catch (DirectoryNotFoundException e)
            {
                throw new Exception("Directory does not exist. Path: c:\tempoooo\asdas.txt");
            }
            catch (Exception e)
            {
                throw e;
            }
        }

        public void Stop(ref ICurrentAction currentAction)
        {
            throw new NotImplementedException();
        }

        public void Rollback(ref ICurrentAction currentAction)
        {
            
        }
    }
}
